# Fastlane requirements
fastlane_version "1.109.0"

import "./../Submodules/WeTransfer-iOS-CI/Fastlane/testing_lanes.rb"
import "./../Submodules/WeTransfer-iOS-CI/Fastlane/shared_lanes.rb"

desc "Run the tests and prepare for Danger"
lane :test do |options|

  # Remove any leftover reports before running so CI won't fail due to an existing file.
  # This also helps for local running this workflow frequently.
  sh("rm -rf #{ENV['PWD']}/build/reports")
  
  test_package(
        package_name: 'Diagnostics',
        package_path: ENV['PWD'],
        disable_automatic_package_resolution: false)
end
